import request from '@/utils/request'

// 查询ATM钞箱送修记录列表
export function listCassetteRepair(query) {
  return request({
    url: '/service/CassetteRepair/list',
    method: 'get',
    params: query
  })
}

// 查询ATM钞箱送修记录详细
export function getCassetteRepair(id) {
  return request({
    url: '/service/CassetteRepair/' + id,
    method: 'get'
  })
}

// 新增ATM钞箱送修记录
export function addCassetteRepair(data) {
  return request({
    url: '/service/CassetteRepair',
    method: 'post',
    data: data
  })
}

// 修改ATM钞箱送修记录
export function updateCassetteRepair(data) {
  return request({
    url: '/service/CassetteRepair',
    method: 'put',
    data: data
  })
}

// 删除ATM钞箱送修记录
export function delCassetteRepair(id) {
  return request({
    url: '/service/CassetteRepair/' + id,
    method: 'delete'
  })
}
